/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBlayer;
import Modellayer.*;
import java.util.ArrayList;
/**
 *
 * @author Engel
 */
public interface IFDBCustomer 
{
     // get all customers
    public ArrayList<Customer> getAllCustomers(boolean retrieveAssociation);
    //get one product having the ID
    public Customer findCustomer(int ID, boolean retreiveAssociation);
    //find one product having the name
    public Customer searchCustomerName( String name, boolean retrieveAssociation);
    //insert a new customer
    public int insertCustomer(Customer customer);
    //update information about a customer
    public int updateCustomer(Customer customer);
    // delete a customer having the ID
    public void delete(int id);
}
